package com.zaicheng.cloud;/*
 @author zaicheng
 @version 1.0
 @date 2022-04-19
 @email zzc15847256473@163.com
 */

import com.zaicheng.cloud.context.named.NamedContextFactory;

import java.util.Arrays;

public class RemoteCallClientSpecification implements NamedContextFactory.Specification {

    private  String name;

    private  Class<?>[] configurations;

    public RemoteCallClientSpecification() {
    }

    public RemoteCallClientSpecification(String name, Class<?>[] configurations) {
        this.name = name;
        this.configurations = configurations;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Class<?>[] getConfigurations() {
        return configurations;
    }

    public void setConfigurations(Class<?>[] configurations) {
        this.configurations = configurations;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Class<?>[] getConfiguration() {
        return this.configurations;
    }


    @Override
    public String toString() {
        return "RemoteCallClientSpecification{" +
                "name='" + name + '\'' +
                ", configurations=" + Arrays.toString(configurations) +
                '}';
    }
}
